<?php
/**
 * Created by PhpStorm
 * User: 龍zero
 * Date: 2022-04-10
 * Time: 16:28
 */
namespace App\Service\Contract;


interface ITokenProviderService
{
    /**
     * 获取令牌
     * @return mixed
     */
    public function getToken($user);

    /**
     * 刷新令牌
     * @return mixed
     */
    public function refreshToken();

    /**
     * 获取token登录用户ID
     * @param $tokenType
     * @return mixed
     */
    public function getCurrentUID($tokenType='access');

}